package com.panda.web.mapper.commons;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panda.web.entity.commons.WechatPicture;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface WechatPictureMapper extends BaseMapper<WechatPicture> {
    @Delete("delete from wechat_picture where openid=#{openid}")
    int deleteByOpenid(String openid);
    @Select("select * from wechat_picture where openid=#{openid}")
    WechatPicture findByOpenid(String openid);
}
